#ifndef SCICALC_H
#define SCICALC_H

#include <stdlib.h>

typedef struct {
    int row;
    int col;
    double value;  
} SparseElement;

SparseElement* dense_to_sparse(double* matrix, int rows, int cols, int* count);  
double* sparse_to_dense(SparseElement* sparse, int count, int rows, int cols);  

#endif